<script setup>
import router from "@/router";

const xx = () => {
  router.push("/my");
};
</script>

<template>
  <div class="header">
    <div>健身房管理系统</div>
    <div @click="xx">退出登录</div>
  </div>
</template>

<style scoped lang="scss">
.header {
  display: flex;
  background-color: skyblue;
  height: 100%;
  width: 100%;
  justify-content: space-between;
  //  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  box-sizing: border-box;
  padding: 0 15px;
  div {
    font-size: 26px;
  }
}
</style>
